package com.demo.connectdbtest.module.generatetype;

import java.util.*;

public class CritizenMain {
    public static void main(String[] args) {
        HashMap<String, ArrayList<Critizen>> map = new HashMap<>();
        ArrayList<Critizen> critizens = new ArrayList<>();
        critizens.add(new Critizen("yang"));
        critizens.add(new Critizen("jicai"));
        map.put("jicai", critizens);
        Set<Map.Entry<String, ArrayList<Critizen>>> entries = map.entrySet();
        Iterator<Map.Entry<String, ArrayList<Critizen>>> iterator = entries.iterator();
        while (iterator.hasNext()) {
            Map.Entry<String, ArrayList<Critizen>> next = iterator.next();
            System.out.println("key=" + next.getKey() + "value=" + next.getValue());
        }
    }
}
